/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.drifter;

/**
 *
 * @author Aaron
 */

public abstract class EntityMobile extends Entity {

    protected EntityMobile (Map map, MapCell position) {
        super(map, position);
    }

    public void moveRight(int x) {
        this.setX(this.getX() + x);
    }
    
    public void moveLeft(int x) {
        this.setX(this.getX() - x);
    }
    
    public void moveUp(int y) {
        this.setY(this.getY() + y);
    }
    
    public void moveDown(int y) {
        this.setY(this.getY() - y);
    }
}
